package ensa.sid.rida.SID;
import javax.swing.table.AbstractTableModel;



class ZModel extends AbstractTableModel{

private Object[][] data;
private String[] title;

public ZModel(Object[][] data, String[] title){
this.data = data;
this.title = title;
}

public int getColumnCount() {
return this.title.length;
}

public int getRowCount() {
return this.data.length;
}

public Object getValueAt(int row, int col) {
return this.data[row][col];
}

public String getColumnName(int col) {
  return this.title[col];
}

public void setData(Object[][] dataBis){
    	data = dataBis;
    	super.fireTableDataChanged();
    }


}